package edu.fiap.model.service;

import java.util.List;

import edu.fiap.model.entity.Cliente;
import edu.fiap.model.persistence.dao.ClienteDAO;
import edu.fiap.model.persistence.dao.DAOFactory;


public class ClienteService{

	private static DAOFactory daoFactory = DAOFactory.getDAOFactory();
	private static ClienteDAO clienteDAO = daoFactory.getClienteDAO();
	
	public static Cliente procurarCliente(Cliente cliente){
		return clienteDAO.find(cliente);
	}
	
	public static List<Cliente> listarClientes(Cliente cliente){
		return clienteDAO.list(cliente);
	}
	
	public static List<Cliente> listarTodosClientes(){
		return clienteDAO.list(new Cliente());
	}
}
